package com.zh.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @ClassName ConfigClientController
 * @date: 2021.07.12 21:19
 * @Author: zhanghang
 */
@RestController
@RefreshScope // 刷新注解
public class ConfigClientController {

	@Value("${config.info}")
	private String info;

	@GetMapping("/configInfo")
	public String getInfo(){
		return info;
	}
}
